package com.et.generator;

import com.et.generator.impl.ControllerProducerImpl;
import com.et.generator.impl.ModelProducerImpl;

/**
 * <p>代码生产者工厂</p>
 * @author defier Lai
 * <p>Date: 2009-12-7 下午06:42:23</p>
 * @version 1.0
 */
public class ProducerFactory {
	
	private static ModelProducer modelProducer;
	
	private static ControllerProducer controllerProducer;
	
	public static ModelProducer getModelProducer() {
		if(modelProducer == null) {
			modelProducer = new ModelProducerImpl();
		}
		return modelProducer;
	}
	
	public static ControllerProducer getControllerProducer() {
		if(controllerProducer == null) {
			controllerProducer = new ControllerProducerImpl();
		}
		return controllerProducer;
	}

}
